package com.bto.solar.work.dao.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.bto.solar.work.common.BizException;
import com.bto.solar.work.constant.BizCode;
import com.bto.solar.work.entity.LeasePrjProjectProduct;
import com.bto.solar.work.mapper.LeasePrjProjectProductMapper;
import com.bto.solar.work.dao.ILeasePrjProjectProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 越秀-产品表 服务实现类
 * </p>
 *
 * @author adrian
 * @since 2023-08-09
 */
@Service
public class LeasePrjProjectProductServiceImpl extends ServiceImpl<LeasePrjProjectProductMapper, LeasePrjProjectProduct> implements ILeasePrjProjectProductService {
//    @Autowired
//    private LeasePrjProjectProductMapper leasePrjProjectProductMapper;
//
//    @Override
//    public List<LeasePrjProjectProduct> getLeasePrjProjectList() {
//        List<LeasePrjProjectProduct> leasePrjProjectProductList = leasePrjProjectProductMapper.selectList(null);
//        return leasePrjProjectProductList;
//    }
//
//    @Override
//    public Integer updateLeasePrjProject(String id, LeasePrjProjectProduct leasePrjProject) {
//        LambdaQueryWrapper<LeasePrjProjectProduct> wrapper = new LambdaQueryWrapper<>();
//        wrapper.eq(LeasePrjProjectProduct::getId , id);
//        LeasePrjProjectProduct leasePrjProjectOne = leasePrjProjectProductMapper.selectOne(wrapper);
//        if (leasePrjProjectOne == null){
//            throw new BizException(BizCode.LEASE_IMAGE_ABSENT_ERROR);
//        }
//        return null;
//    }
}
